package com.drawingtimer.admin.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * 时间段记录
 *
 * @author jjh 2025-04-24 16:34:17
 */
@Data
@TableName("t_time_segment_record")
@Schema(title = "时间段记录")
public class TTimeSegmentRecord {

	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@Schema(title = "ID")
	@TableId(type = IdType.AUTO)
	private Long id;

	/**
	 * 工序ID
	 */
	@Schema(title = "工序ID")
	private Long processId;

	/**
	 * 流转卡号
	 */
	@Schema(title = "流转卡号")
	private String flowCardNumber;

	/**
	 * 开始时间
	 */
	@Schema(title = "开始时间")
	private LocalDateTime startTime;

	/**
	 * 结束时间
	 */
	@Schema(title = "结束时间")
	private LocalDateTime endTime;

	/**
	 * 总耗时 秒 开始时间-结束时间-暂时时间
	 */
	@Schema(title = "总耗时 秒 开始时间-结束时间-暂时时间")
	private Long totalTimeConsumption;

	/**
	 * 完工数量
	 */
	@Schema(title = "完工数量")
	private Long completedQuantity;

	/**
	 * 报废数量
	 */
	@Schema(title = "报废数量")
	private Long scrappedQuantity;

	/**
	 * 备注
	 */
	@Schema(title = "报废备注")
	private String remark;

	/**
	 * 报工工号
	 */
	@Schema(title = "报工工号")
	private String reportEmployeeId;

	/**
	 * 机台编号
	 */
	@Schema(title = "机台编号")
	private String machineNumber;

	/**
	 * 最早开始时间
	 */
	@Schema(title = "最早开始时间")
	private LocalDateTime earliestStartTime;

	/**
	 * 总实际工时(分钟)
	 */
	@Schema(title = "总实际工时(分钟)")
	private Long totalActualHours;

	/**
	 * 包含准备工时
	 */
	@Schema(title = "包含准备工时")
	private Integer includesSetupTime;

	/**
	 * 报工电脑
	 */
	@Schema(title = "报工电脑")
	private String reportComputer;

}
